<?php


    @ header ('Content-Type: text/html; charset=UTF-8;');
    @ header ('Cache-Control: no-cache, must-revalidate');
    @ header ('Pragma: no-cache');
    @ header ('Connection: close');
    @ ini_set('max_execution_time', 3600 );
    error_reporting(E_ALL & ~E_NOTICE);
    ini_set('display_errors', TRUE);
    ini_set('display_startup_errors', TRUE);

    ignore_user_abort(false);
    date_default_timezone_set('UTC');
    define('PAGE_PARSE_START_TIME', microtime());

    $_dir = dirname( dirname(__FILE__) ).'/' ;
    include ( dirname(__FILE__) . '/paths.php' );

    include( CLASS_PATH . 'm.php');

    if ( !function_exists('http_path') ) 
    {
        m::r ('install.php');
    }

    include( CLASS_PATH . 'option.php');     
    include_once( CLASS_PATH . 'log.php' );
    include_once( CLASS_PATH . 'http.php' );
    include_once( CLASS_PATH . 'p.php');

    //подключаем все утсановленные плагины
    p::include_all();
    include_once( CLASS_PATH . 't.php');

    setting::get();

    session_start ();
?>